<?php
require('includes/top.php');

$accessories_rules_id = $_POST['accessories_rules_id'];

$days = $_POST['days'];

$sql = "UPDATE accessories_rules SET `days` = '".$days."' where accessories_rules_id='".trim($accessories_rules_id)."'";
$result=mysql_query($sql);


if($result>0)
{
header('Location: accessories_rules_details.php?v=success');
}
else
{
header('Location: accessories_rules_details.php?v=err');
}
?>